package com.zhongyu.hellocloudgradeprovider.service;

import com.zhongyu.hellocloudgradeprovider.dao.GradeDao;
import com.zhongyu.pojo.Grade;
import com.zhongyu.service.GradeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GradeServiceImpl implements GradeService {

    @Resource
    private GradeDao gradeDao;

    @Override
    public Grade getGradeById(Integer id) {
        return gradeDao.getGradeById(id);
    }

    @Override
    public List<Grade> getGrades() {
        return gradeDao.getGrades();
    }
}
